package cn.yuanqiao.archive.wenjianzhengli.domain;/**
 * @author 赵常飞
 * @date 2024/1/11 16:27
 */

import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;

/**
 * @Author: 赵常飞
 * @Date: 2024/1/11 16:27
 * @Description:
 * @Note:
 */

public class TenantTablehead extends BaseEntity {
    private final String BIGTABLENAME = "_TABLEHEAD";

    public TenantTablehead() {
        String tenantCode = SecurityUtils.getTenantCode();
        if (StringUtils.isEmpty(tenantCode)) {
            throw new ServiceException("TenantCode is null");
        } else {
            this.tableName = tenantCode.toUpperCase() + BIGTABLENAME;
        }
    }

    private static final long serialVersionUID = 1L;
    private String tableName;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    private Long tablemenuId;

    private int zltype;

    private String content;

    private String cateGoryId;

    private String qzh;

    public Long getTablemenuId() {
        return tablemenuId;
    }

    public void setTablemenuId(Long tablemenuId) {
        this.tablemenuId = tablemenuId;
    }

    public int getZltype() {
        return zltype;
    }

    public void setZltype(int zltype) {
        this.zltype = zltype;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCateGoryId() {
        return cateGoryId;
    }

    public void setCateGoryId(String cateGoryId) {
        this.cateGoryId = cateGoryId;
    }

    public String getQzh() {
        return qzh;
    }

    public void setQzh(String qzh) {
        this.qzh = qzh;
    }
}
